package com.theme.passport.entity.constant;

/**
 *@描述: 第三方登录来源
 *@创建人:cuixinfu@51play.com
 *@创建时间:2019/6/18 19:45
 */
public enum ThemeAttchmentTypeEnum {

    THEME(1,"主题"),
    WIDGE(2,"组件"),
    WALLPAPER(3,"壁纸");

    private int value;
    private String name;

    ThemeAttchmentTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static ThemeAttchmentTypeEnum getItemStatus(int value){
        ThemeAttchmentTypeEnum[] thirdOriginTypes = ThemeAttchmentTypeEnum.values() ;
        for (ThemeAttchmentTypeEnum thirdOriginType : thirdOriginTypes) {
            if(thirdOriginType.getValue() == value){
                return thirdOriginType ;
            }
        }
        return null ;
    }

}

